package com.itheima.kebian;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/*
Set.of
Map.of
Map.ofEntries
 */
public class Demo03 {

    public static void main(String[] args) {
        HashSet<String> set = new HashSet<>(Set.of("鹿晗","黄子韬", "张艺兴"));
        System.out.println(set);
        Map<String, String> map = Map.of("小璐", "PGone", "马蓉", "宋喆", "爽子", "张恒");

        HashMap<String, String> map1 = new HashMap<>(map);
        map1.put("都美竹","吴签");
        System.out.println(map1);

        Map<String, String> map2 = Map.ofEntries(Map.entry("鹿晗", "晓彤"),Map.entry("鹿晗1", "晓彤1"),Map.entry("鹿晗2", "晓彤2"));

        System.out.println(map2);
    }
}
